<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="shortcut icon" href="images/icon/${his.favicon}" />
		<title>${his.hospitalName}-健康点评</title>
		<link href="style/css.css" rel="stylesheet" type="text/css" />
				<SCRIPT src="js/jquery.js" type="text/javascript"></SCRIPT>
		<SCRIPT type="text/javascript">
	function  support(obj,c_id){
			$.getJSON("comment.do?method=addSupport",{c_id:c_id,suiji:Math.random()},function(data){
				$(obj).html("支持(<span style='color:red'>"+data+"</span>)");
			});
			$(obj).removeAttr("onclick");
		}
		function  against(obj,c_id){
			$.getJSON("comment.do?method=addAgainst",{c_id:c_id,suiji:Math.random()},function(data){
				$(obj).html("反对(<span style='color:red'>"+data+"</span>)");
			});
			$(obj).removeAttr("onclick");
		}
	</SCRIPT>
	<script src="js/jquery.js"></script>
		<script>
			function fz(){
				var ws = $("#wsearch").val();
				$("#search").val(ws);
			}
			function qz(){
				var sea = $("#search").val();
				$("#wsearch").val(sea);
			}
		</script>
	</head>

	<body>
		<style>
A.applink:hover {
	border: 2px dotted #DCE6F4;
	padding: 2px;
	background-color: #ffff00;
	color: green;
	text-decoration: none
}

A.applink {
	border: 2px dotted #DCE6F4;
	padding: 2px;
	color: #2F5BFF;
	background: transparent;
	text-decoration: none
}

A.info {
	color: #2F5BFF;
	background: transparent;
	text-decoration: none
}

A.info:hover {
	color: green;
	background: transparent;
	text-decoration: underline
}
</style>
	<jsp:include page="users/userTop.jsp"></jsp:include>
		<table width="779" border="0" align="center" cellpadding="0"
			cellspacing="0" style="margin-top: 7px">
			<tr>
				<td width="197" height="500" align="left" valign="top"
					bgcolor="#F6F9FB" class="bgxz_zhong_bk">
					<jsp:include page="users/userLeft.jsp"></jsp:include>
				</td>
				<td width="11" align="left" valign="top">
					&nbsp;
				</td>
				<td width="567" align="left" valign="top" class="bk">
					<table width="567" border="0" cellpadding="0" cellspacing="0"
						style="margin-bottom: 20px">

						<tr>
							<td height="28" align="right" valign="top" bgcolor="#FFFFFF"
								class="ind_zhong_bj">
								<table width="536" border="0" cellspacing="0" cellpadding="0"
									style="margin-top: 4px; margin-right: 10px">
									<tr>
										<td align="center" style="color: red">
											给 ${doctorName} 医生点评
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" bgcolor="#FFFFFF">
								<table width="535" border="0" cellspacing="0" cellpadding="0"
									style="margin-top: 22px; margin-left: 16px">
									<tr>
										<td align="left" valign="top">

											<c:forEach items="${comments}" var="comment" varStatus="i">
												<div style="border-bottom: 2px solid red;">
													<table>
														<tr>
															<td>
																网友：${comment.userName}
															</td>
															<td colspan="">
																疾病：${comment.disease}
															</td>
														</tr>
														<tr>
															<td colspan="2">
																<br />
															</td>
															<td>
																态度：${comment.attitude}
															</td>
															<td>
																医术：${comment.leechcraft}
															</td>
														</tr>
														<tr>
															<td colspan="4">
																<hr />
															</td>
														</tr>
														<tr>
															<td colspan="4">
																网友点评：${comment.info}
															</td>
														</tr>
														<tr>
															<td colspan="2"></td>
															<td style="color: skyblue">
																<a>回应此网友</a> |
															</td>
															<td style="color: skyblue">
																<span style="cursor: pointer"
																	onclick="support(this,${comment.c_id})">支持(<span
																	style="color: red"">${comment.support}</span>)</span>
																<span style="cursor: pointer"
																	onclick="against(this,${comment.c_id})">反对(<span
																	style="color: red;">${comment.against}</span>)</span>
															</td>
														</tr>
													</table>
												</div>
											</c:forEach>
										</td>
									</tr>
								</table>
								<c:if test="${comments!=null}">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td class="STYLE4">
											&nbsp;&nbsp;共有 ${rowCount} 条记录，当前第 ${current}/${pageCount} 页
										</td>
										<td>
											<form action="comment.do?method=query&doctorName=${doctorName}" method="post">
												<table border="0" align="right" cellpadding="0"
													cellspacing="0">
													<tr>
														<td width="40">
															<a href="comment.do?method=query&doctorName=${doctorName}&current=1"> 首页 </a>
														</td>
														<td width="45">
															<a href="comment.do?method=query&doctorName=${doctorName}&current=${current-1}">
																上一页 </a>
														</td>
														<td width="45">
															<a href="comment.do?method=query&doctorName=${doctorName}&current=${current+1}">
																下一页 </a>
														</td>
														<td width="40">
															<a href="comment.do?method=query&doctorName=${doctorName}&current=${pageCount}">
																末页 </a>
														</td>
														<td width="100">
															<div align="center">
																<span class="STYLE1">转到第 <input name="current"
																		type="text" size="4"
																		onkeypress="if ((event.keyCode<48 || event.keyCode>57)) {event.returnValue=false};
															if(this.value.length > 4){this.value = 10000}"
																		style="height: 12px; width: 20px; border: 1px solid #999999;" />
																	页 </span>
															</div>
														</td>
														<td width="40">
														<input type="hidden" name="doctorName" value="${doctorName}" />
															<input type="image" src="images/go.gif" width="37"
																height="15" onclick="submit()" />
														</td>
													</tr>
												</table>
											</form>
										</td>
									</tr>
								</table>
								</c:if>
							</td>
						</tr>

					</table>
					<form action="comment.do?method=comment" method="post">
					<input type="hidden" name="token" value="<%=Math.random() %>" />
						<table>
							<tr>
								<td>
									疾病名称：
								</td>
								<td colspan="2">
									<input type="text" name="disease" />
									<span style="color: red">*</span>请填写具体疾病名称或病情
								</td>
							</tr>
							<tr>
								<td>
									治疗方式：
								</td>
								<td colspan="2">
									<input type="text" name="rx" />
									如：药品名、手术名（腹腔镜、介入治疗）
								</td>
							</tr>
							<tr>
								<td align="right">
									医术：
								</td>
								<td>
									<select name="leechcraft">
										<option value="很满意">
											很满意
										</option>
										<option value="满意">
											满意
										</option>
										<option value="比较满意">
											比较满意
										</option>
										<option value="一般">
											一般
										</option>
										<option value="差">
											差
										</option>
									</select>
								</td>

								<td>
									态度：
									<select name="attitude">
										<option value="很满意">
											很满意
										</option>
										<option value="满意">
											满意
										</option>
										<option value="比较满意">
											比较满意
										</option>
										<option value="一般">
											一般
										</option>
										<option value="差">
											差
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td>
									我的点评：
								</td>
								<td colspan="2">
									<textarea name="info" rows="6" cols="50"></textarea>
								</td>
							</tr>
							<tr>
								<td colspan="3" align="center">
									<input type="hidden" name="doctorName" value="${doctorName}" />
									<input type="hidden" name="userName" value="${userinfo.uname}" />
									<input type="submit" value="点评" />
								</td>
							</tr>
						</table>
					</form>
				</td>
			</tr>
		</table>

		<table width="779" height="114" border="0" align="center"
			cellpadding="0" cellspacing="0" style="margin-top: 13px">
			<tr>
				<td height="85" align="center" valign="top">
					<table border="0" cellpadding="0" cellspacing="0"
						style="margin-top: 5px">
						<tr>
							<td align="center" valign="middle">
								<jsp:include page="users/yejiao.jsp"></jsp:include>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<script
			src="admins/SiteStat/mystat.asp~siteurl=http_　www.hz7hospital.comndex.asp.html"></script>
	</body>
</html>
